<?php

!defined('IN_NOVA') && exit('Access Denied!');

class Guestbook {

	public function start() {
		global $theme,$cache,$request;

		$theme->title = L('_GUEST_BOOK_');

		// 参数处理
		$theme->current_page = max( 1, $request->p );
		$theme->max_per_page = $cache->config['maxperpage'];
		$theme->guestbook_num = $cache->count['guestbook_num'];
		// 输出留言页内容
		$theme->load('guestbook');
	}
}
?>
